.v-flow-panel {
  width: 100%;
  height: 100%;
  background: #fafafa;
  overflow: hidden;
  position: relative;
  .float-bar {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 10px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    background: #ffffff;
    color: #333333;
    border-radius: 3px;
    font-size: 12px;
    a {
      color: #0abaff;
      cursor: pointer;
      padding: 0 5px;
    }
  }
  .node-wrap {
    position: absolute;
    cursor: move;
    width: 100%;
    height: 100%;
    padding-top: 30px;
    background: #fafafa;
    .node-wrapper {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      .branch-box-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        .branch-box {
          border-top: 2px solid #cccccc;
          border-bottom: 2px solid #cccccc;
          display: flex;
          justify-content: center;
          overflow: visible;
          margin-top: 15px;
          margin: 0 auto;
          .add-branch {
            width: 68px;
            height: 30px;
            line-height: 30px;
            text-align: center;
            font-size: 12px;
            border-radius: 30px;
            color: #0abaff;
            background: #ffffff;
            box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
            cursor: pointer;
            position: absolute;
            left: 0;
            right: 0;
            margin: auto;
            top: -15px;
            z-index: 1;
          }
          .col-box {
            position: relative;
            background: #fafafa;
            margin: 0 -1px;
            &::before {
              content: '';
              position: absolute;
              background: #cacaca;
              width: 2px;
              height: 100%;
              left: 0;
              right: 0;
              top: 0;
              bottom: 0;
              margin: auto;
            }
            .top-left-cover-line,
            .top-right-cover-line {
              position: absolute;
              width: 50%;
              height: 8px;
              background: #fafafa;
              top: -4px;
            }
            .top-left-cover-line {
              left: -1px;
            }
            .top-right-cover-line {
              right: -1px;
            }
            .bottom-left-cover-line,
            .bottom-right-cover-line {
              position: absolute;
              width: 50%;
              height: 8px;
              background: #fafafa;
              bottom: -4px;
            }
            .bottom-left-cover-line {
              left: -1px;
            }
            .bottom-right-cover-line {
              right: -1px;
            }
          }
          .branch-item {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            padding: 50px 50px 0;
            position: relative;
            &::before {
              content: '';
              position: absolute;
              background: #cacaca;
              width: 2px;
              height: 100%;
              left: 0;
              right: 0;
              top: 0;
              bottom: 0;
              margin: auto;
            }
          }
        }
      }
      .arrow {
        position: absolute;
        top: -12px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 4px;
        border-style: solid;
        border-width: 8px 6px 4px;
        border-color: #cacaca transparent transparent;
        background: #f5f5f7;
      }
      .node-wrap-box {
        width: 300px;
        min-height: 92px;
        background: #ffffff;
        box-shadow: 0px 5px 12px 0px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        margin: 0 auto;
        overflow: hidden;
        position: relative;
        &:hover {
          .title {
            .editabled {
              border-bottom: 1px dashed #ffffff;
            }
            .icon-close {
              display: block;
              cursor: pointer;
            }
          }
          box-shadow:
            0px 5px 12px 0px rgba(10, 186, 255, 0.1),
            0 0 0 1px #0abaff;
        }
        .title {
          height: 32px;
          padding: 0 12px;
          color: #ffffff;
          font-size: 12px;
          display: flex;
          align-items: center;
          justify-content: space-between;
          .row {
            display: flex;
            align-items: center;
            i {
              font-size: 18px;
              margin-right: 12px;
            }
          }
          &.type-0 {
            background: #c0c9d3;
          }
          &.type-1 {
            background: #f76262;
          }
          &.type-2 {
            background: #0abaff;
          }
          &.type-3 {
            background: #0dc49a;
          }
          .editabled {
            border-bottom: 1px dashed transparent;
          }
          .icon-close {
            display: none;
            transform: rotate(45deg);
          }
          .text {
            padding: 2px 0;
          }
          input {
            color: #2d2d2d;
            border-radius: 2px;
            padding: 2px 5px;
            border: none;
          }
        }
        .content {
          cursor: pointer;
          display: flex;
          align-items: center;
          justify-content: space-between;
          padding: 5px 12px;
          font-size: 14px;
          color: #2d2d2d;
          min-height: 60px;
          .content-arrow {
            font-size: 12px;
          }
          .placeholder {
            color: #b1b1b1;
          }
        }
        .node-id {
          line-height: 30px;
          padding: 5px 12px;
          font-size: 12px;
          color: #999999;
        }
      }
      .add-node-btn-box {
        width: 300px;
        height: 92px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        .add-node-btn {
          position: absolute;
          top: 25px;
        }
        .line {
          position: absolute;
          width: 2px;
          height: 100%;
          background: #cacaca;
        }
        .add-btn {
          width: 30px;
          height: 30px;
          font-size: 18px;
          color: #ffffff;
          background: #0abaff;
          border-radius: 50%;
          display: flex;
          justify-content: center;
          align-items: center;
          cursor: pointer;
        }
      }
    }
    .end-node {
      .end-node-circle {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #dbdcdc;
        margin: auto;
      }
      .end-node-text {
        margin-top: 5px;
        font-size: 14px;
        color: rgba(25, 31, 37, 0.4);
        text-align: center;
      }
    }
  }
}

.add-node-popover-body {
  display: flex;
  .add-node-popover-item {
    width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 12px;
    .item-wrapper {
      width: 50px;
      height: 50px;
      background: #ffffff;
      border: 1px solid #eeeeee;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 50%;
      cursor: pointer;
      i {
        font-size: 24px;
      }
      margin-bottom: 10px;
    }
    &.approver .item-wrapper {
      i {
        color: #f76262;
      }
      &:hover {
        border-color: #f76262;
        background: #f76262;
        i {
          color: #ffffff;
        }
      }
    }
    &.notifier .item-wrapper {
      i {
        color: #0abaff;
      }
      &:hover {
        border-color: #0abaff;
        background: #0abaff;
        i {
          color: #ffffff;
        }
      }
    }
    &.condition .item-wrapper {
      i {
        color: #0dc49a;
      }
      &:hover {
        border-color: #0dc49a;
        background: #0dc49a;
        i {
          color: #ffffff;
        }
      }
    }
  }
}

// 配置标题
.v-flow-config-drawer-title {
  display: flex;
  align-items: center;
  color: #2d2d2d;
  .icon {
    font-size: 20px;
    margin-right: 20px;
    line-height: 1;
  }
  .drawer-title {
    margin: 0;
    line-height: 1;
    padding: 5px;
    font-size: 16px;
    &.editabled {
      cursor: pointer;
    }
  }
  input {
    border-radius: 2px;
    padding: 4px;
    border: 1px solid #dbdcdc;
    font-size: 16px;
    line-height: 1;
  }
}

.v-flow-config-drawer-body {
  .v-flow-config-section {
    margin-bottom: 40px;
    .config-section-title {
      font-size: 20px;
      margin-bottom: 20px;
    }
    .form-title {
      font-size: 16px;
      margin: 20px 0;
    }
    .type-selector {
      margin-bottom: 20px;
    }
  }
  .condition-group {
    p {
      margin-bottom: 10px;
      padding: 0 10px;
    }
    .condition-item {
      border: 1px solid #eeeeee;
      border-radius: 4px;
      margin-bottom: 10px;
      p {
        margin-bottom: 10px;
      }
      .condition-group-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: #eeeeee;
        padding: 0 10px;
      }
      .condition-group-control {
        padding: 10px;
        .notes {
          font-size: 12px;
          color: #999999;
          margin: 0 10px;
        }
      }
      .condition-item-form {
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
        .condition-item-form__input {
          display: flex;
          flex-wrap: wrap;
          align-items: center;
          justify-content: space-between;
          .el-input-number {
            margin: 0 10px;
            width: 160px;
          }
        }
      }
    }
  }
}
